<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>两栏</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            display: table;
            border: 1px solid;
        }
        .box .left{
            width: 100px;
            height: 200px;
            background: firebrick;
        }
        .box .right{
            display: table-cell;
            width: 100%;
            background: green;
        }

        .second{
            width: 100%;
            display: table;
            margin-top: 30px;
        }
        .second .left{
            width: 100%;
            display: table-cell;
            height: 200px;
            background: orange;
        }
        .second .right{
            width: 100px;
            height: 200px;
            background: orangered;
        }

        .third{
            width: 100%;
            height: 100%;
            margin-top: 10px;
        }
        .third .left{
            width: 100px;
            height: 200px;
            background: hotpink;
            float: left;
        }
        .third .right{
            height: 300px;
            background: pink;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <!-- 两栏模拟表格 右边自适应 -->
    <div class="box">
        <div class="left"></div>
        <div class="right"></div>
    </div>
    <!-- 两栏布局 模拟表格，左边自适应 -->
    <div class="second">
        <div class="left"></div>
        <div class="right"></div>
    </div>

    <!-- 第三种：bfc -->
    <div class="third">
        <div class="left"></div>
        <div class="right"></div>
    </div>
</body>
</html>